package com.anlogic.sdk.linker;

public class MemRangeSection {
	public static final String PROPERTY_SEC_NAME = "Section Name";

	public static final String PROPERTY_MEM_NAME = "Memory Region";

	public static final String[] PROPERTIES = new String[] { "Section Name", "Memory Region" };

	private String oldName;
	
	private String secName;

	private String memRange;
	
	private String phyMemory;

	public MemRangeSection(String secName, String memRange) {
		this.oldName = secName;
		this.secName = secName;
		this.memRange = memRange;
	}

	public String getOldSectionName() {
		if (this.oldName == null)
			return "unknown";
		return this.oldName;
	}
	
	public String getSectionName() {
		if (this.secName == null)
			return "unknown";
		return this.secName;
	}

	public String getMemoryRange() {
		if (this.memRange == null)
			return "unknown";
		return this.memRange;
	}

	public String getPhyMemory() {
		if (this.phyMemory == null)
			return "unknown";
		return this.phyMemory;
	}
	
	public void setOldSectionName(String value) {
		this.oldName = value;
	}
	
	public void setSectionName(String value) {
		this.secName = value;
	}

	public void setMemoryRange(String value) {
		this.memRange = value;
	}
	
	public void setPhyMemory(String value) {
		this.phyMemory = value;
	}
}
